package com.wochao.web.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wochao.model.entity.LeaseAgreement;
import com.wochao.model.entity.LeaseTerm;
import com.wochao.model.entity.PaymentType;
import com.wochao.web.app.vo.agreement.AgreementDetailVo;
import com.wochao.web.app.vo.agreement.AgreementItemVo;

import java.util.List;

public interface LeaseAgreementService extends IService<LeaseAgreement> {
    /**
     * 获取当前用户的个人租约基本信息列表
     *
     * @param phone
     * @return
     */
    List<AgreementItemVo> selectListByPhone(String phone);

    /**
     * 根据id获取租约详细信息
     *
     * @param id
     * @return
     */
    AgreementDetailVo getDetailById(Long id);

    /**
     * 根据房间id获取可选支付方式列表
     *
     * @param id
     * @return
     */
    List<PaymentType> ListPaymentTypeByRoomId(Long id);

    /**
     * 根据房间id获取可选获取租期列表
     *
     * @param id
     * @return
     */
    List<LeaseTerm> ListLeaseAgreementByRoomId(Long id);

}
